package hu.bme.orarend.client;

import hu.bme.orarend.shared.ClassDTO;
import hu.bme.orarend.shared.RoomDTO;
import hu.bme.orarend.shared.ScheduleDTO;

import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath( "orarend" )
public interface OrarendService extends RemoteService
{
  Boolean saveRoom( RoomDTO roomDTO ) throws Exception;
  
  ArrayList<RoomDTO> getRoomList( );
  
  Boolean saveClass( ClassDTO classDTO ) throws Exception;
  
  ArrayList<ClassDTO> getClassList( );
  
  Integer createSchedule();
  
  ArrayList<ScheduleDTO> getScheduleList();

  ArrayList<ClassDTO> getLeftClassesList();
  
  Boolean authUser( String user, String passw ) throws NoSuchAlgorithmException;
}
